package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购材料对象 purchase_record
 * 
 * @author ruoyi
 * @date 2021-05-06
 */
public class PurchaseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;
    /** 材料名称 */
    private String mName;

    /** 材料型号 */
    private String mModel;

    /** 材料单位 */
    private String mUnit;

    /** 请购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String requisitionDate;
    /** 规格 */
    @Excel(name = "规格")
    private String mdSpecifications;

    /** 实购数量 */
    @Excel(name = "实购数量")
    private Double mdSum;

    /** 采购价格 */
    @Excel(name = "采购价格")
    private Double mdPrice;

    /** 入库价格 */
    @Excel(name = "入库价格")
    private Double truePrice;

    /** 供应商 */
    @Excel(name = "供应商")
    private String mdBusiness;

    /** 0/1是否是常用供应商 */
    @Excel(name = "0/1是否是常用供应商")
    private String commBus;

    /** 品牌 */
    @Excel(name = "品牌")
    private String mdBrand;

    /** 0/1是否入库 */
    @Excel(name = "0/1是否入库")
    private Integer stateIn;

    /** 0/1是否出库 */
    @Excel(name = "0/1是否出库")
    private Integer stateOut;
    /** 0/1是否出库 */
    @Excel(name = "付款方")
    private String paymentUnit;


    /** 去向仓管 */
    @Excel(name = "去向仓管")
    private String wareName;

    /** 材料外键 */
    @Excel(name = "材料外键")
    private Long mId;

    /** 甲供入库单外键 */
    @Excel(name = "甲供入库单外键")
    private Long warehousingId;

    /** 出库单外键 */
    @Excel(name = "出库单外键")
    private Long outingId;

    /** 采购单外键 */
    @Excel(name = "采购单外键")
    private Long purId;


    /** 退料材料来源类型 */
    @Excel(name = "退料材料来源类型")
    private Integer mdInType;


    /** 出库材料来源类型 */
    @Excel(name = "采购单外键")
    private Integer mdOutType;

    /** 入库时间 */
    @Excel(name = "入库时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String insertTime;

    /** 出库时间 */
    @Excel(name = "出库时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String outTime;

    /** 材料来源 */
    @Excel(name = "材料来源")
    private String mdSupplier;

    /** 操作数量 */
    @Excel(name = "材料来源")
    private Double pickNum;

    /** 一行总价 */
    @Excel(name = "一行总价")
    private Double sum;

    /** 退了材料明细外键 */
    @Excel(name = "一行总价")
    private Long InMdId;

    /** 退了材料明细外键 */
    @Excel(name = "一行总价")
    private Long OutMdId;

    /** 请购单材料外键 */
    @Excel(name = "请购单材料外键")
    private Long reqRecId;

    /** 所属项目名称 */
    @Excel(name = "所属项目名称")
    private String proName;

    /** 所属项目编号 */
    @Excel(name = "所属项目名称")
        private String proNum;

    /** 采购时间 */
    @Excel(name = "采购时间")
    private String purchaseTime;

    /** 已付 */
    @Excel(name = "已付")
    private Double paid;

    @Override
    public String toString() {
        return "PurchaseRecord{" +
                "id=" + id +
                ", mName='" + mName + '\'' +
                ", mModel='" + mModel + '\'' +
                ", mUnit='" + mUnit + '\'' +
                ", requisitionDate='" + requisitionDate + '\'' +
                ", mdSpecifications='" + mdSpecifications + '\'' +
                ", mdSum=" + mdSum +
                ", mdPrice=" + mdPrice +
                ", truePrice=" + truePrice +
                ", mdBusiness='" + mdBusiness + '\'' +
                ", commBus='" + commBus + '\'' +
                ", mdBrand='" + mdBrand + '\'' +
                ", stateIn=" + stateIn +
                ", stateOut=" + stateOut +
                ", paymentUnit='" + paymentUnit + '\'' +
                ", wareName='" + wareName + '\'' +
                ", mId=" + mId +
                ", warehousingId=" + warehousingId +
                ", outingId=" + outingId +
                ", purId=" + purId +
                ", mdInType=" + mdInType +
                ", mdOutType=" + mdOutType +
                ", insertTime='" + insertTime + '\'' +
                ", outTime='" + outTime + '\'' +
                ", mdSupplier='" + mdSupplier + '\'' +
                ", pickNum=" + pickNum +
                ", sum=" + sum +
                ", InMdId=" + InMdId +
                ", OutMdId=" + OutMdId +
                ", reqRecId=" + reqRecId +
                ", proName='" + proName + '\'' +
                ", proNum='" + proNum + '\'' +
                ", purchaseTime='" + purchaseTime + '\'' +
                ", paid=" + paid +
                '}';
    }

    public Double getPaid() {
        return paid;
    }

    public void setPaid(Double paid) {
        this.paid = paid;
    }

    public String getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(String purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProNum() {
        return proNum;
    }

    public void setProNum(String proNum) {
        this.proNum = proNum;
    }

    public Long getReqRecId() {
        return reqRecId;
    }

    public void setReqRecId(Long reqRecId) {
        this.reqRecId = reqRecId;
    }

    public Long getInMdId() {
        return InMdId;
    }

    public void setInMdId(Long inMdId) {
        InMdId = inMdId;
    }

    public Long getOutMdId() {
        return OutMdId;
    }

    public void setOutMdId(Long outMdId) {
        OutMdId = outMdId;
    }

    public Integer getMdInType() {
        return mdInType;
    }

    public void setMdInType(Integer mdInType) {
        this.mdInType = mdInType;
    }

    public Integer getMdOutType() {
        return mdOutType;
    }

    public void setMdOutType(Integer mdOutType) {
        this.mdOutType = mdOutType;
    }

    public Double getPickNum() {
        return pickNum;
    }

    public void setPickNum(Double pickNum) {
        this.pickNum = pickNum;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getMdSupplier() {
        return mdSupplier;
    }

    public void setMdSupplier(String mdSupplier) {
        this.mdSupplier = mdSupplier;
    }

    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }


    public String getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(String insertTime) {
        this.insertTime = insertTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmModel() {
        return mModel;
    }

    public void setmModel(String mModel) {
        this.mModel = mModel;
    }

    public String getmUnit() {
        return mUnit;
    }

    public void setmUnit(String mUnit) {
        this.mUnit = mUnit;
    }

    public String getRequisitionDate() {
        return requisitionDate;
    }

    public void setRequisitionDate(String requisitionDate) {
        this.requisitionDate = requisitionDate;
    }

    public String getMdSpecifications() {
        return mdSpecifications;
    }

    public void setMdSpecifications(String mdSpecifications) {
        this.mdSpecifications = mdSpecifications;
    }

    public Double getMdSum() {
        return mdSum;
    }

    public void setMdSum(Double mdSum) {
        this.mdSum = mdSum;
    }

    public Double getMdPrice() {
        return mdPrice;
    }

    public void setMdPrice(Double mdPrice) {
        this.mdPrice = mdPrice;
    }

    public Double getTruePrice() {
        return truePrice;
    }

    public void setTruePrice(Double truePrice) {
        this.truePrice = truePrice;
    }

    public String getMdBusiness() {
        return mdBusiness;
    }

    public void setMdBusiness(String mdBusiness) {
        this.mdBusiness = mdBusiness;
    }

    public String getCommBus() {
        return commBus;
    }

    public void setCommBus(String commBus) {
        this.commBus = commBus;
    }

    public String getMdBrand() {
        return mdBrand;
    }

    public void setMdBrand(String mdBrand) {
        this.mdBrand = mdBrand;
    }

    public Integer getStateIn() {
        return stateIn;
    }

    public void setStateIn(Integer stateIn) {
        this.stateIn = stateIn;
    }

    public Integer getStateOut() {
        return stateOut;
    }

    public void setStateOut(Integer stateOut) {
        this.stateOut = stateOut;
    }

    public String getWareName() {
        return wareName;
    }

    public void setWareName(String wareName) {
        this.wareName = wareName;
    }

    public Long getmId() {
        return mId;
    }

    public void setmId(Long mId) {
        this.mId = mId;
    }

    public Long getWarehousingId() {
        return warehousingId;
    }

    public void setWarehousingId(Long warehousingId) {
        this.warehousingId = warehousingId;
    }

    public Long getOutingId() {
        return outingId;
    }

    public void setOutingId(Long outingId) {
        this.outingId = outingId;
    }

    public Long getPurId() {
        return purId;
    }

    public void setPurId(Long purId) {
        this.purId = purId;
    }

    public String getPaymentUnit() {
        return paymentUnit;
    }

    public void setPaymentUnit(String paymentUnit) {
        this.paymentUnit = paymentUnit;
    }
}
